package com;

/**
 * ClassName : PACKAGE_NAME.com.Student
 * Desc : TODO
 *
 * @author : LINPQ
 * @date : 2020/12/9 19:20
 */
public class Student {

    private String nam;


    public String getNam() {
        return nam;
    }














    Computer c;

    public Computer jiediannao() {


        Computer cc = new Computer();


        return cc;
    }


    /**
     * [访问权限][方法修饰符] 返回类型  方法名(参数1,参数2,…) [throws exceptionList] {
     * 方法体
     * }
     */

    public static void main(String[] args) {
        Student s = new Student();
        s.t4();
    }


    public void t1() {
        System.out.println("t1");
    }

    public void t1(int i) {
        System.out.println("t i");
    }

    public void t1(int j, int o) {
        System.out.println("t i");
    }

    protected void t2() {
        System.out.println("t2");
    }

    void t3() {
        System.out.println("t3");
    }

    private void t4() {
        System.out.println("t4");
    }


    static String shcool;

    String name;


    public void setName(String name) {
        this.name = name;
    }


    public void test2() {
        System.out.println(shcool);
    }


    public static void test3() {

        System.out.println(shcool);
    }


    public void test() {
        String type = "legion";

    }

    public String getName() {

//        System.out.println(type);
        return name;
    }
}
